package com.sky.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.SetmealDTO;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.result.Result;
import com.sky.vo.DishItemVO;
import com.sky.vo.SetmealPageVO;
import com.sky.vo.SetmealVO;

import java.util.List;

/**
 * <p>
 * 套餐 服务类
 * </p>
 *
 * @author xieminghui
 * @since 2023-11-16
 */
public interface ISetmealService extends IService<Setmeal> {

    Result<SetmealPageVO> findPage(SetmealPageQueryDTO setmealPageQueryDTO);

    Result<String> saveSetmeal(SetmealDTO setmealDTO);

    Result<SetmealVO> findById(Long id);

    Result<String> updateSetmeal(SetmealDTO setmealDTO);

    Result<String> updateStatus(Integer status, Long id);

    Result<String> DeleteStatus(List<Long> ids);
    /**
     * 分类id查询套餐
     * @param categoryId
     * @return 套餐本身信息,不含菜品
     */
    public List<Setmeal> findByid(Long categoryId);

    List<DishItemVO> getDishItemById(Long id);
}
